/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openjawtech.xscraper.web.dto;

import java.util.Date;
import static com.openjawtech.xscraper.web.util.TimeUtil.dateFormat;

/**
 *
 * @Created on 18-Mar-2009, 12:02:40
 * @author Wenbo.Sun
 */
public class FlightDTO {

    private String travelDate;
    private double price;

    public void setPrice(double price) {
        this.price = price;
    }

    public String getTravelDate() {
        return travelDate;
    }

    public void setTravelDate(String travelDate) {
        this.travelDate = travelDate;
    }


    public double getPrice() {
        return price;
    }


    public FlightDTO() {
    }

    public FlightDTO(Date travelDate, double price) {
        this.travelDate = dateFormat(travelDate);
        this.price = price;
    }

    public FlightDTO(String travelDate, double price) {
        this.travelDate = travelDate;
        this.price = price;
    }

    
}
